<?php foreach($pages as $page): ?>

<h1><?php echo $page->getTitle(); ?></h1>

<?php echo $page->getcontent(ESC_RAW); ?>

<?php endforeach; ?>